﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Limpio.Master" Inherits="System.Web.Mvc.ViewPage<FONCREAGROINTEGRAL.Models.AREA>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <% using (Html.BeginForm("Edit", "area", FormMethod.Post, new { id = "area" }))
       {%>
        <%: Html.ValidationSummary(true) %>
        
            <div class="divLC">
            <div class="divLabel">
                Codigo Area
            </div>
            <div class="divcampo3">
                <%: Html.TextBoxFor(model => model.CodArea)%>
                <%: Html.ValidationMessageFor(model => model.CodArea)%>
            </div>
            </div>
            
            <div class="divLC">
            <div class="divLabel">
                <%: Html.LabelFor(model => model.Nombre)%>
            </div>
            <div class="divcampo3">
                <%: Html.TextBoxFor(model => model.Nombre, new {size = "55"})%>
                <%: Html.ValidationMessageFor(model => model.Nombre)%>
            </div>
            </div>
            
            <div class="divLC">
            <div class="divLabel">
                Tipo Area
            </div>
            <div class="divcampo3">
                <%: Html.DropDownList("TipoArea")%>
                <%: Html.ValidationMessageFor(model => model.TipoArea)%>
            </div>
            </div>

            <div class="divLC">
            <div class="divLabel">
                <%: Html.LabelFor(model => model.Administracion)%>
            </div>
            <div class="divcampo3">
                <%: Html.DropDownList("Administracion")%>
                <%: Html.ValidationMessageFor(model => model.Administracion)%>
            </div>
            </div>
            
            <div class="divLC">
            <div class="divLabel">
                Controla Proyectos
            </div>
            <div class="divcampo3">
                <%: Html.DropDownList("ControlaProyectos")%>
                <%: Html.ValidationMessageFor(model => model.ControlaProyectos)%>
            </div>
            </div>
            <hr />
            <p>
                <input type="submit" value="Guardar" id ="bsubmit"/>
            </p>

    <% } %>

</asp:Content>

